<template>
  <div class="myhead">
    <div>
      <slot name="left"></slot>
    </div>
    <div class="dis">{{ title }}</div>
    <div>
      <slot name="right"></slot>
    </div>
  </div>
</template>
<script>
export default {
  props: ["title"],
};
</script>
<style lang="less" scoped>
.myhead {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
  > div:nth-child(1) {
    font-size: 18px;
  }
  > div:nth-child(2) {
    font-weight: 700;
    font-size: 18px;
  }
  > div:nth-child(3) {
    color: red;
    font-size: 22px;
  }
}
</style>